package com.naiterui.ehp.bs.esign.repository.mysql;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.esign.entity.mysql.EsignPresignFile;
import org.springframework.stereotype.Repository;

/**
 * @author guoyongxiang
 * @date 2019/12/2 20:11
 * @since 1.0.0
 */
@Repository
public interface IEsignEsignPresignFileRepository extends BaseJpaRepository<EsignPresignFile, Long> {

    /**
     * 根据电子签名厂商ID查询文件
     *
     * @param uniqueId
     *
     * @return
     */
    EsignPresignFile findByUniqueId(String uniqueId);

    EsignPresignFile findFirstByFileSnAndType(String fileSn, Integer type);
}
